package com.tju.t5.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Privilege entity. @author MyEclipse Persistence Tools
 */

public class Privilege implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer privilegeID;
	private String sid;
	private String privilegeName;
	private String description;
	private Set roles = new HashSet(0);

	// Constructors

	/** default constructor */
	public Privilege() {
	}

	/** full constructor */
	public Privilege(String sid, String privilegeName, String description,
			Set rolePrivileges) {
		this.sid = sid;
		this.privilegeName = privilegeName;
		this.description = description;
		this.roles = rolePrivileges;
	}

	// Property accessors

	public Integer getPrivilegeID() {
		return this.privilegeID;
	}

	public void setPrivilegeID(Integer privilegeID) {
		this.privilegeID = privilegeID;
	}

	public String getSid() {
		return this.sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getPrivilegeName() {
		return this.privilegeName;
	}

	public void setPrivilegeName(String privilegeName) {
		this.privilegeName = privilegeName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Set getRoles() {
		return this.roles;
	}

	public void setRoles(Set roles) {
		this.roles = roles;
	}

}